package com.mao.service.impl.organization;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mao.dao.organization.OrganizationClassDao;
import com.mao.model.organization.OrganizationClass;
import com.mao.service.organization.IOrganizationClassService;

@Service("organizationClassService")
public class OrganizationClassServiceImpl implements IOrganizationClassService {
	private OrganizationClassDao organizationClassDao;

	public List<OrganizationClass> getAllOrganizationClass(Long storeid) {
		return organizationClassDao.getAllOrganizationClass(storeid);
	}

	public OrganizationClass saveOrganizationClass(OrganizationClass oc) {
		return organizationClassDao.saveOrganizationClass(oc);
	}

	public OrganizationClass updateOrganizationClass(OrganizationClass oc) {
		return organizationClassDao.updateOrganizationClass(oc);
	}

	public OrganizationClass getOrganizationClassById(long id) {
		return organizationClassDao.getOrganizationClassById(id);
	}
	
	public List<OrganizationClass> getAllOrganizationClass(){
		return organizationClassDao.getAllOrganizationClass();
	}
	
	@Override
	public String valDelOrgClass(long id) {
		return organizationClassDao.valDelOrgClass(id);
	}

	// set get
	public OrganizationClassDao getOrganizationClassDao() {
		return organizationClassDao;
	}

	@Autowired
	public void setOrganizationClassDao(
			OrganizationClassDao organizationClassDao) {
		this.organizationClassDao = organizationClassDao;
	}

	

}
